package com.boil.qz.safekavass.web.request.param;

import com.boil.util.Constants;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

/**
 * Created by ChenYong on 2017-04-15.
 * <br>
 * 更新用户的请求参数。
 */
public class UpdateLoginUserParam2 extends UpdateLoginUserParam {
    /**
     * 编号
     */
    @NotNull(message = "ID不能为空")
    @Range(min = Constants.VALUE_L_0, max = Long.MAX_VALUE, message = "ID在0至9223372036854775807之间")
    private Long id;

    /**
     * 默认构造器。
     */
    public UpdateLoginUserParam2() {
        super();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("UpdateLoginUserParam2{");
        sb.append("id=").append(id);
        sb.append(", loginName='").append(loginName).append('\'');
        sb.append(", collieryNo='").append(collieryNo).append('\'');
        sb.append(", industryCode='").append(industryCode).append('\'');
        sb.append(", secComUnitCode='").append(secComUnitCode).append('\'');
        sb.append(", isLeader='").append(isLeader).append('\'');
        sb.append('}');
        return sb.toString();
    }
}